<div class="results">
  <div class="left"><?php echo $text_results; ?></div>
  <div class="right pagination">
  <span id="entry_page"><?php echo $entry_page; ?></span>
  <?php foreach ($pages as $p) { ?>
  <a href="<?php echo $p['href']; ?>"<?php if ($p['value'] == $page) { ?> id="current"<?php } ?>><?php echo $p['value']; ?></a>
  <?php } ?>
  </div>
</div>